package com.akeil.flash.action;

import org.eclipse.jface.action.Action;
import org.eclipse.ui.plugin.AbstractUIPlugin;

import com.akeil.flash.dataprocessing.IConstantProcessor;

import flash.Activator;
import flash.Application;

public class ConnectAction extends Action {
	
	public ConnectAction(){
		this.setImageDescriptor(AbstractUIPlugin.imageDescriptorFromPlugin(Activator.PLUGIN_ID, "icons/toolbar/connect_32px.png"));
		this.setToolTipText("连接仪器");
		this.setText("连接仪器");
	}
	
	@Override
	public void run() {
		// TODO Auto-generated method stub
		Application.processor.sendCommand((byte)IConstantProcessor.Connect_Device);
		super.run();
	}

	

}
